﻿using DatabaseModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DbCleaner {
    public class DbCleaner {
        public static void Clean() {
            using (ElliContext context = new ElliContext()) {
                foreach (LogBookEntry entry in context.LogBookEntries) {
                    context.LogBookEntries.Remove(entry);
                }
                context.SaveChanges();
            }
        }
    }
}
